package com.example.lambda;

/**
 * @author MikeW
 */
public class RunnableTest {
    public static void main(String[] args) {

        System.out.println("=== RunnableTest ===");

        // Anonymous Runnable
        Runnable r1 = () -> System.out.println("Hello world one!");

        // Lambda Runnable
        Runnable r2 = () -> System.out.println("Hello world one!");

        // Run em!
        r1.run();
        r2.run();

    }
}
